package ${pk.paramPackage};

<#if hasDate>

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
</#if>

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
<#list pk.entityImportPackages as eip>
import ${eip};
</#list>



<#assign nowDate = .now>
/**
 * ${table.comments!} 新增参数
 *
 * @author ${author!'作者走丢了'}
 * @created ${nowDate?string("yyyy-MM-dd HH:mm:ss")}
 */
@Data
@ToString
@Accessors(chain = true)
@ApiModel(value="${pk.entityName}[${table.comments!}]新增对象")
public class ${pk.paramName} implements Serializable{

    /**
    * ID
    */
    @ApiModelProperty(value = "ID", required = false , example = "")
    private String id;
<#list table.fields as field>
    <#if !field.commonField>

    /**
     * ${field.comments!}
     */
<#if field.javaSimpleType =='Date'>
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
</#if>
    @ApiModelProperty(value = "${field.comments!}", required = false , example = "<#if field.javaSimpleType=='Date'>${nowDate?string("yyyy-MM-dd HH:mm:ss")}<#elseif field.javaSimpleType=='Integer' || field.javaSimpleType=='BigDecimal'>-1<#else></#if>")
    private ${field.javaSimpleType} ${field.entityFieldName};
    </#if>
</#list>

}
